package xin.yangshuai.basic01.gof23.adapter;

public class HdmiToVgaAdapter implements HdmiMonitor {

    private VgaMonitor vgaMonitor;

    public void connect(VgaMonitor vgaMonitor) {
        this.vgaMonitor = vgaMonitor;
    }

    @Override
    public void setShowContent(String showContent) {
    }

    @Override
    public String show() {
        System.out.println("通过当前设备：hdmi到vag转换器");
        return vgaMonitor.display();
    }
}
